package cn.article.entity;


import cn.easier.club.base.annotation.Convert;

public class LogisticsStatusConverter implements Convert<String, LogisticsStatus>{

	@Override
	public LogisticsStatus convert(String source) {
		if(LogisticsStatus.FORWARD_DIRECTION.getDescription().equals(source)){
			return LogisticsStatus.FORWARD_DIRECTION;
		}else{
			return LogisticsStatus.NEGATIVE_DIRECTION;
		}
	}

}
